package org.demo.five;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @author  
 * @date    2010-10-24
 * @file    org.demo.five.ArrayToList.java
 */
public class ArrayToList {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Person ted = new Person("Ted","Neward",39,
				                 new Person("Michael","Neward",16),
				                 new Person("Mattrew","Neward",10));
		List<Person> kids = new ArrayList<Person>(ted.getChildren());
		kids = MyCollections.reverse(kids);
		for (Person kid : kids){
			System.out.println(kid.getFirstName());
		}
		System.out.println(ted.getChildren());
		
	}

}
